﻿import request from '/@/utils/request';
enum Api {
  AddSysHoliday = '/api/sysHoliday/add',
  DeleteSysHoliday = '/api/sysHoliday/delete',
  UpdateSysHoliday = '/api/sysHoliday/update',
  SaveSysHoliday = '/api/sysHoliday/save',
  PageSysHoliday = '/api/sysHoliday/page',
  ExportSysHoliday = 'api/sysHoliday/export',
}

//导出节假日维护
export const exportSysHolidayExcel=(params?:any)=>
	request({
		url:Api.ExportSysHoliday,
		method:'post',
		data:params,
		responseType: 'blob'
	});

// 增加节假日维护
export const addSysHoliday = (params?: any) =>
	request({
		url: Api.AddSysHoliday,
		method: 'post',
		data: params,
	});

// 删除节假日维护
export const deleteSysHoliday = (params?: any) => 
	request({
			url: Api.DeleteSysHoliday,
			method: 'post',
			data: params,
		});

// 编辑节假日维护
export const updateSysHoliday = (params?: any) => 
	request({
			url: Api.UpdateSysHoliday,
			method: 'post',
			data: params,
		});

// 保存节假日维护
export const saveSysHoliday = (params?: any) => 
	request({
			url: Api.SaveSysHoliday,
			method: 'post',
			data: params,
		});

// 分页查询节假日维护
export const pageSysHoliday = (params?: any) => 
	request({
			url: Api.PageSysHoliday,
			method: 'post',
			data: params,
		});


